package ru.chaykin;

import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;

@Deprecated
public class GUI {
/*	public static void main(String[] args) throws Exception {
	//	AppResourceBundle.setLocale("en_EN");
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				String mainFrameConfigFile = AppConfig.getInstance().getMainFrameConfigFile();
			//	MainFrame.load(mainFrameConfigFile);
				//GUI obj=new GUI();
				//final JLabel label = obj.display();
				
			/*	Timer timer = new Timer(1000, new ActionListener() {
                    public void actionPerformed(ActionEvent ev) {
	                       new DataTransferWorker(label).execute();
	                     }
				});
				timer.start();
			}
		});
	}*/

	public JLabel display() {
		JFrame jfrm=new JFrame("Swing Application");
		jfrm.setSize(320,240);
		jfrm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		jfrm.setLayout(new FlowLayout());
		jfrm.setVisible(true);
		JLabel jlab=new JLabel("A simple swing in java blog for beginners");
		jfrm.add(jlab);
		return jlab;
	}
}
